package com.company;

public class Interface {
    public static void main(String[] args){
        Jiekou a=new Animal();
        a.eat();
        a.sleep();
        System.out.println(Jiekou.c);
    }
}
 interface  Jiekou{
    int c=10;
      void eat();
       void sleep();
}
class  Animal implements Jiekou{
@Override
    public void eat(){
    System.out.println("eat");
}
@Override
    public void sleep(){
    System.out.println("sleep");
}
}